// router/index.js
import { createRouter, createWebHistory } from 'vue-router'
import UserLogin from "@/components/SimpleUser/User/UserLogin.vue";
import UserRegister from "@/components/SimpleUser/User/UserRegister.vue";
import UserUpdate from "@/components/SimpleUser/User/UserUpdate.vue";
import Index from "@/components/SimpleUser/index/IndexPage.vue";
import card from "@/components/SimpleUser/Pet/PetCard.vue"
import petAdd from "@/components/SimpleUser/Pet/PetAdd.vue"
import PetPage from "@/components/SimpleUser/Pet/PetPage.vue";
import PetUpdate from "@/components/SimpleUser/Pet/PetUpdate.vue";
import PetCardDetail from "@/components/SimpleUser/Pet/PetCardDetail.vue";
import ProjectPage from "@/components/SimpleUser/Project/ProjectPage.vue";
import ProjectDetail from "@/components/SimpleUser/Project/ProjectDetail.vue";
import MyReservation from "@/components/SimpleUser/Reservation/MyReservation.vue";
import ProjectList from "@/components/SimpleUser/Project/ProjectList.vue";
import ProjectAdd from "@/components/SimpleUser/Project/ProjectAdd.vue";
import UserList from "@/components/SimpleUser/User/UserList.vue";
import AllReservation from "@/components/SimpleUser/Reservation/AllReservation.vue";
import IndexPage from "@/components/SimpleUser/index/IndexPage.vue";
import UserInfo from "@/components/SimpleUser/User/UserInfo.vue";
import UserPage from "@/components/Admin/UserPage.vue";
import ReservationPage from "@/components/Admin/ReservationPage.vue";
import IndexRouter from "@/components/Admin/IndexRouter.vue";
import AdminLogin from "@/components/Admin/AdminLogin.vue";
const routes = [
    {
        path: '/',
        component: IndexRouter
    },
    {
        path: '/userLogin',
        component: UserLogin,
        meta:
            {
            showNav: true
            }
    },
    {
        path: '/userRegister',
        component: UserRegister,
        meta:
            {
                showNav: true
            }
    },
    { path: '/userUpdate', component: UserUpdate },
    {path: '/indexPage', component: Index},
    {path: '/petCard', component: card},
    {path: '/petAdd', component: petAdd},
    {path: '/petPage', component: PetPage},
    {path: '/petUpdate', component: PetUpdate},
    {path: '/petCardDetail', component: PetCardDetail},
    {path: '/projectPage',component: ProjectPage},
    {path: '/projectDetail', component: ProjectDetail},
    {path: '/myReservation',component: MyReservation},
    {path: '/projectList',component: ProjectList},
    {path: '/projectAdd',component: ProjectAdd},
    {path: '/userList',component: UserList},
    {path: '/allReservation',component: AllReservation},
    {path: '/indexPage',component: IndexPage},
    {path: '/userInfo',component: UserInfo},
    {path: '/userListAdmin',component: UserPage},
    {path: '/reservation-page',component: ReservationPage},
    {path: '/adminLogin',
        component: AdminLogin,
        meta:
            {
                showNav: true
            }}
]
const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
